﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using System.Web.Mvc;
using System.IO;

namespace Steve.UI
{
    [Export(typeof(ContentDataHandlerBase))]
    [ExportMetadata("Name", "Null")]
    public sealed class NullContentDataHandler : ContentDataHandlerBase
    {
        public override ActionResult Render(Content content, ContentType contentType, bool raw)
        {
            return new EmptyResult();
        }

        public override ActionResult Edit(Content content, ContentType contentType)
        {
            return new EmptyResult();
        }

        protected override ContentDataHandlerEditData GetEditData(ContentType contentType)
        {
            return null;
        }

        public override string ExtractText(Content content, ContentType contentType)
        {
            return null;
        }
    }
}
